package a51qindian.com.comprehensive.adapter;

import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import a51qindian.com.comprehensive.R;

/**
 * Author: Li
 * Date: 2017/9/13 0013
 * Description:
 */

public class ConsumptionAdapter extends RecyclerView.Adapter<ConsumptionAdapter.ConsumptionHolder> {

    private LayoutInflater mInflater;

    public ConsumptionAdapter(Context context) {
        mInflater=LayoutInflater.from(context);
    }

    @Override
    public ConsumptionHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        View view=mInflater.inflate(R.layout.item_consumption,parent,false);
        return new ConsumptionHolder(view);
    }

    @Override
    public void onBindViewHolder(ConsumptionHolder holder, int position) {

    }

    @Override
    public int getItemCount() {
        return 10;
    }

    static class ConsumptionHolder extends RecyclerView.ViewHolder{

        public ConsumptionHolder(View itemView) {
            super(itemView);
        }
    }
}
